package com.tanhua.api.mongo;

import com.tanhua.mongo.FollowUser;
import com.tanhua.mongo.Publish;
import com.tanhua.mongo.Video;
import com.tanhua.vo.PageBeanVo;

public interface VideoApi {

    // 分页查询
    PageBeanVo findByPage(Integer pageNum, Integer pageSize);

    // 保存小视频
    void save(Video video);

    // 关注
    void saveFollowUser(FollowUser followUser);

    // 取消关注
    void removeFollowUser(Long userId, Long followUserId);

    //分页查询该用户的小视频
    PageBeanVo findUserVideo(Integer page, Integer pagesize, Long uid);

    Video findById(String videoId);
}